package com.plusjun.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.plusjun.common.utils.PageUtils;
import com.plusjun.gulimall.member.entity.MemberEntity;
import com.plusjun.gulimall.member.exception.PhoneExistException;
import com.plusjun.gulimall.member.exception.UsernameExistExcetion;
import com.plusjun.gulimall.member.vo.MemberLoginVO;
import com.plusjun.gulimall.member.vo.MemberRegistVO;
import com.plusjun.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author jiajiajun
 * @email ${email}
 * @date 2020-05-13 19:22:11
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVO vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUserNameUnique(String username) throws UsernameExistExcetion;

    MemberEntity login(MemberLoginVO vo);

    MemberEntity login(SocialUser vo) throws Exception;
}

